package com.hy.memoryassistant;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by Mike on 10/03/2015.
 * Untested, but this is suppose to add a scheduled task after startup
 * to check for reminder updates
 */
public class SchedulerAutoStart extends BroadcastReceiver {
    SchedulerReceiver scheduler = new SchedulerReceiver();

    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {
            scheduler.SetAlarm(context);
        }
    }
}
